{include file="public/header" /}
<style type="text/css">
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0px;
        margin-top: 0px
    }

    #title span {
        float: right;
    }

    .btn-active {
        background: #1ab394;
        color: #fff
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">
            <div class="row row-lg">

                <div style="display:block;clear: both;"></div>
                <div class="fixed-table-toolbar">
                    <a class="btn btn-default btn-outline {if input('get.type/s','1') eq '1'} btn-active{/if}" href="{:url('Chat/privateChatList', ['type'=>1])}">私聊记录</a>
                    <a class="btn btn-default btn-outline {if input('get.type/s') eq '2'} btn-active{/if}" href="{:url('Chat/privateChatList', ['type'=>2])}">今日私聊记录</a>
                    <a class="btn btn-default btn-outline {if input('get.type/s') eq '3'} btn-active{/if}" href="{:url('Chat/privateChatList', ['type'=>3])}">通知记录</a>
                    <a class="btn btn-default btn-outline {if input('get.type/s') eq '4'} btn-active{/if}" href="{:url('Chat/privateChatList', ['type'=>4])}">今日通知记录</a>


                </div>
                <div class="example">
                    <form class="form-horizontal" method="post">
                        <table data-toggle="table">
                            <thead>
                            <tr>

                                <th data-align="center">ID</th>
                                <th data-align="center">发送会员id</th>
                                <th data-align="center">接收用户ID</th>
                                <th data-align="center">内容</th>
                                <th data-align="center">url</th>
                                <th data-align="center">是否已读</th>
                                <th data-align="center">消息类型</th>
                                <th data-align="center">消息分类</th>
                                <th data-align="center">消息状态</th>
                                <th data-align="center">聊天时间</th>
                                <th data-align="center">拉取数据时间</th>
                                <th data-align="center">管理</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="list" id="vo"}
                            <tr id="id{$vo.id}">

                                <td>{$vo.id}</td>
                                <td>{$vo.member_id}</td>
                                <td>{$vo.receive_flag_id}</td>
                                <td>{$vo.content}</td>
                                <!-- -1提示,0文字,1图片,2语音,3视频,4文件,5红包,6位置-->
                                <td>{if $vo['type']==1}
                                        <img src="{$vo.url}" width="40" height="40" />
                                    {else}
                                            {if $vo.url!=''}<img src="{$vo.url}"  width="40" height="40" /> {/if}
                                    {/if}
                                </td>
                                <td>{if $vo.is_read}已读{else}未读{/if}</td>
                                <td>{$types[$vo['type']]}</td>
                                <td>{$msg_types[$vo['msg_type']]}</td>
                                <td>{$statuss[$vo['status']]}</td>
                                <td>{$vo.time|date='Y-m-d H:i:s'}</td>
                                <td>{$vo.create_time|date='Y-m-d H:i:s'}</td>
                                <td>
                                    <div class="btn-group">
                                        <div data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">
                                            操作 <span class="caret"></span>
                                        </div>
                                        <ul class="dropdown-menu">
                                            <li><a onclick="delById("chat_record",'{$vo.id}')">删除</a></li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>

            <hr>
            <div class="row row-lg">
                <div class="col-sm-12 pages">{$page|raw}</div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table.min.css"}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table.min.js"}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table-zh-CN.min.js"}
<script type="text/javascript">
    function add(url) {
        layer.open({
            type: 2,
            title: '内容管理',
            shadeClose: false,
            shade: 0.2,
            area: ['80%', '95%'],
            skin: 'shangchuantup',
            // shift:-1,
            content: url,
        });
    }

</script>